﻿<%@ WebHandler Language="C#" Class="VaildNo" %>

using System;
using System.Web;
using BLL;
public class VaildNo : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        string no = context.Request.Params["No"].ToString().Trim();


        if (new PublicSqlService().GetCoun("BID", "Tbl_WayBill", "TrackingNo='" + no + "'") == 0)
        {
            context.Response.Write("ok");

        }
        else
        {
            context.Response.Write("err");
        }
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}